{extend name="layout/datagrid" /}
{block name="head_foot"}
<!-- lightbox2 -->
<link rel="stylesheet" href="__ui_plugins__/lightbox/lightbox2/css/lightbox.min.css">
{/block}
{block name="content_header"}
<h1>
    推广用户
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">代理</a></li>
    <li class="active">推广用户</li>
</ol>
{/block}
{block name="content"}
<div class="box">
    <div class="box-header">
        <div class="row">
            <div class="col-md-5">
                <button type="button" class="btn btn-sm btn-success navbar-btn xsui-btn-refresh"><i class="fa fa-refresh"></i></button>
            </div>
            <div class="col-md-7">
                <form class="navbar-form navbar-right">
                    <div class="form-group">
                        <input type="text" name="word" class="form-control input-sm" placeholder="关键词..." title="用户名" value="{$search.word}">
                    </div>
                    <button type="submit" class="btn btn-sm btn-default">搜索</button>
                </form>
            </div>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover" data-firstrowid="{$firstRowId}">
            <thead>
                <tr>
                    <th><input type="checkbox" class="xsui-btn-checking-all" /></th>
                    <th>#</th>
                    <th>用户ID</th>
                    <th>用户名</th>
                    <th>游戏名称</th>
                    <th>头像</th>
                    <th>金币</th>
                    <th>房卡</th>
                    <th>积分</th>
                    <th>累计房卡</th>
                    <th>充值金额</th>
                    <th>注册时间</th>
                    <th>登录时间</th>
                    <th>登录IP</th>
                    <th>登录次数</th>
                    <th>渠道</th>
                    <th>推广数量</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach name="list" item="vo"}
                <tr data-key="{$vo.userid}">
                    <td><input type="checkbox" value="{$vo.userid}" /></td>
                    <td title="{$vo.userid}" class="xsui-rowid"></td>
                    <td>{$vo.userid}</td>
                    <td>{$vo.accountmask}</td>
                    <td>{$vo.nameText}</td>                
                    <td><a href="{$vo.headimg}" data-lightbox="example-set"><img class="img-responsive img-sm" src="{$vo.headimg}" alt="" /></a></td>
                    <td>{$vo.coins}</td>
                    <td>{$vo.gems}</td>
                    <td>{$vo.topscore}</td>
                    <td>{$vo.gems_total}</td>
                    <td><a href="{:url('finance.recharge/rechargelist','uid='.$vo['userid'])}">{$vo.recharge_amount_total}</a></td>
                    <td>{$vo.regist_time}</td>
                    <td>{$vo.login_time}</td>
                    <td>{$vo.login_ip}</td>
                    <td>{$vo.login_count}</td>
                    <td>{$vo.referral_qd}</td>
                    <td>{$vo.referral_user_count}</td>
                    <td>
                        <a href="{:url('buygems','id='.$vo['userid'])}" class="btn btn-xs btn-danger xsui-btn-edit-dialog" title="代充房卡-{$vo.nameText}"><i class="fa fa-shopping-bag"></i></a>
                    </td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        {$list->render()}
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
{/block}
{block name="body_foot"}
<!-- lightbox2 -->
<script src="__ui_plugins__/lightbox/lightbox2/js/lightbox.min.js"></script>
{/block}